package com.ctshk.rpc.system.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author Lenovo
 */
@Data
@ApiModel(value="MainDataTableFieldReq对象", description="主数据表字段属性")
public class MainDataTableFieldReq implements Serializable {

    private static final long serialVersionUID = 1L;


    @NotNull(message = "所属表id不能为空")
    @ApiModelProperty(value = "所属表id")
    private Long tableId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "所属模块")
    private Integer module;

    @NotNull(message = "表字段属性不能为空")
    @ApiModelProperty(value = "表字段属性")
    private List<MainDataFieldReq> list;
}
